package com.accp.taobao.util;

import com.accp.taobao.model.AirConditioner;

import java.util.Comparator;

public class ComparePrice implements Comparator<AirConditioner> {
    @Override
    public int compare(AirConditioner o1, AirConditioner o2) {
        //递增排序
        return (int)(o1.getPrice()-o2.getPrice());
    }
}
